package com.company;

import java.util.Scanner;

public class Main19 {
    public static void main(String[] args) {
        Scanner sr=new Scanner(System.in);
        System.out.println("请输入性别");
        String a=sr.next();
        System.out.println("请输入身高(cm)");
        float b=sr.nextFloat();
        if (a.equals("男")){
            float c= (float) ((b-100)*0.9)*2;
            System.out.println("标准体重为："+c+"kg");
        }else {
            float c= (float) ((b-100)*0.9-2.5)*2;
            System.out.println("标准体重为："+c+"kg");
        }




    }
}
